package com.motorola.accessories;

import java.io.IOException;

import org.ksoap2.SoapEnvelope;
import org.ksoap2.SoapFault;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.HttpTransportSE;


public class SoapRequest {

    private static final int TimeOutInSeconds = 0;

    public SoapRequest() {

    }

    public void request() throws IOException {
        SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
                SoapEnvelope.VER11);
        envelope.dotNet = true;

        Object request = null;
        envelope.setOutputSoapObject(request);
        Object url = null;
        HttpTransportSE androidHttpTransport = new HttpTransportSE((String) url,
                TimeOutInSeconds * 1000);

        try {
            String soapAction = null;
            androidHttpTransport.call(soapAction, envelope);
        } catch (Exception e) {

        }
        //androidHttpTransport.getConnection().disconnect();
        //SoapObject so = (SoapObject) envelope.getResponse();

    }

}
